home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d892.lha
/
Indent
/
source
/
source.lha
/
memcpy.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-09
|
348b
|
19 lines
/* Copy LEN bytes starting at SRCADDR to DESTADDR. Result undefined
if the source overlaps with the destination.
Return DESTADDR. */
#ifdef USG
char *
memcpy (destaddr, srcaddr, len)
char *destaddr;
char *srcaddr;
int len;
{
char *dest = destaddr;
while (len-- > 0)
*destaddr++ = *srcaddr++;
return dest;
}
#endif